Skip to content

Fix Windows icacls grant for KC config when COMPUTERNAME equals USERNAME#2199

Merged
sk-keeper merged 1 commit into
releasefrom
fix/windows-icacls-getlogin-computername
Jul 8, 2026
Merged

Fix Windows icacls grant for KC config when COMPUTERNAME equals USERNAME#2199
sk-keeper merged 1 commit into
releasefrom
fix/windows-icacls-getlogin-computername

Conversation

@idimov-keeper

Copy link
Copy Markdown
Contributor

Use DOMAIN\username for icacls /grant instead of bare os.getlogin(), which fails when the machine name and username are the same string.

Summary

  • Qualify the Windows icacls /grant principal as DOMAIN\username instead of using bare os.getlogin()
  • Fixes Commander startup/config writes on machines where COMPUTERNAME and USERNAME are the same string
  • Adds unit tests for principal resolution and set_file_permissions() on Windows

Use DOMAIN\username for icacls /grant instead of bare os.getlogin(), which
fails when the machine name and username are the same string.
@idimov-keeper idimov-keeper requested a review from sk-keeper July 8, 2026 16:24
@sk-keeper sk-keeper merged commit 2204862 into release Jul 8, 2026
2 of 4 checks passed
@sk-keeper sk-keeper deleted the fix/windows-icacls-getlogin-computername branch July 8, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants